package oo;

public class Major {
	private int id;
	private String name;
	
	public int getId()
	{
		return this.id;
	}	
	public void setId(int value)
	{
		this.id=value;
	}	
	
	public String getName()
	{
		return this.name;
	}
	public void setName(String value)
	{
		this.name=value;
	}
	
    @Override
    public boolean equals(Object obj) {
        if (obj == null || !(obj instanceof Major))
            return false;
        if (this == obj)
            return true;
        Major instance = (Major) obj;
        
        if (instance.id==this.id)
        {
        	return true;
        }
        else
        {
        	return false;
        }

        //return instance.getName().equals(this.getName());
    }
}
